package main.java.com.suncuicui.bi.FactoryMode.vo;

import main.java.com.suncuicui.bi.FactoryMode.service.intf.Sender;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by suncuicui on 2018/11/26.
 */
public class Builder {
    public List<Sender> list = new ArrayList<Sender>();

    public void produceMailSender(int count){
        for(int i=0; i<count; i++){
            list.add(new MailSender());
        }
    }

    public  void produceSmsSender(int count){
        for(int i=0;i<count;i++){
            list.add(new SmsSender());
        }
    }
}
